package org.lost.design.command;

/**
 * 点灯-物品 
 * 
 * @author  zhangpeijun[zhangpeijun1024@qq.com]
 * @version  [v1.0.1, 2017年10月31日]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public class Light {
    
    String name;
    
    public Light(String name) {
        this.name = name;
    }
    
    public void on() {
        System.out.println("Light " + name + " on.");
    }
    
    public void off() {
        System.out.println("Light " + name + " off.");
    }
    
    public String getName() {
        return name;
    }
}
